package uk.connorwright.StarGame;

import java.awt.image.BufferedImage;

public class SpriteSheet {

	// define variables
	private final BufferedImage image;

	public SpriteSheet(BufferedImage image) {
		this.image = image;
	}

	public BufferedImage grabImage(int col, int row, int width, int height) {

		BufferedImage img = image.getSubimage((col * 32) - 32, (row * 32) - 32,
				width, height);
		return img;
	}

}
